home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3894 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: canopus.cc.umanitoba.ca!news
  2. From: umsuder7@cc.umanitoba.ca (Keith Suderman)
  3. Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.tools.mfc
  4. Subject: Re: Newbie question: default op=
  5. Date: Fri, 26 Jan 1996 16:53:15 GMT
  6. Organization: The University of Manitoba
  7. Message-ID: <4eb0rp$9ft@canopus.cc.umanitoba.ca>
  8. References: <30FEA0B4.4F66@ymi.com>
  9. Reply-To: umsuder7@cc.umanitoba.ca
  10. NNTP-Posting-Host: dyn2-304.cc.umanitoba.ca
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. Jeffrey Keays <keays@ymi.com> wrote:
  14.  
  15. >I am trying to use the &*%$ MFC collections in some way that will dispose of its contents on destruction.  In 
  16. >my 2-days and counting of ramming my head repeatedly against this brick wall over something that should be made 
  17. >'easier' by them, I have this general C++ question.
  18.  
  19. Hello Fellow MFC Newbie,
  20.  
  21.     In general C++ the default bitwise = operator would normally do the
  22. trick for you.  The problem arises with CObject derived classes (or so
  23. my "Teach Yourself MFC" book explains).  Since the = operator is so
  24. vital for the proper functioning of your class, relying on a default
  25. operator could be to dangerous so MFC forces the programmer to define
  26. thier own if one is needed.  Of course, this is only truly helpful if
  27. the programmer knows about it beforehand ;-)
  28.  
  29.                         Keith
  30.  
  31.  
  32. Keith Suderman                   | 
  33. Keith_Suderman@umanitoba.ca      | Computer science is two thirds hard
  34. Winnipeg, Manitoba, Canada       | work and 50% mathematics...
  35. Computer Science IV              |
  36.  
  37.